#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "connectiondialog.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

signals:
    void maindown_logs(const QString &);

    void upload_signal(const QString &);

    void delete_file_signal(QString);

    void download_file_signal(QString);

private slots:
    void on_action_3_triggered();

    void on_pushButton_6_clicked();

    void logs_slot(const QString &);

    void on_pushButton_clicked();

    void enum_down_slot(QList<QString> list, int number);

    void select_file_slot(const QUrl &);

    void on_pushButton_3_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::MainWindow *ui;

    void signal_slot_init();

    void addQStringToTextBrowser(QList<QString> list);

    ConnectionDialog *connection;
};
#endif // MAINWINDOW_H
